<template>
  <div class="app-main-container tabpdding">
    <el-tabs v-model="activeTab">
      <el-tab-pane
        label="专项卡销售统计"
        name="0"
      ><OrienteeringSales
        v-show="activeTab === '0'"
      /></el-tab-pane>
      <el-tab-pane
        label="专项卡销售明细"
        name="1"
      ><SaleRecord
        v-if="activeTab === '1'"
      /></el-tab-pane>
      <el-tab-pane
        label="专项卡消费明细"
        name="2"
      ><ConsumRecord
        v-if="activeTab === '2'"
      /></el-tab-pane>
      <!-- <el-tab-pane v-if="meta.indexOf('CurriculumDetailb') > -1" label="线上课程报名明细" name="2"><CurriculumDetailb v-if="activeTab === '2'" /></el-tab-pane> -->
    </el-tabs>
  </div>
</template>

<script>
import OrienteeringSales from './OrienteeringSales'
import SaleRecord from './SaleRecord'
import ConsumRecord from './ConsumRecord'

export default {
  name: 'OrienteeringStatic',
  components: {
    OrienteeringSales,
    SaleRecord,
    ConsumRecord

  },
  data() {
    return {
      activeTab: '0',
      meta: []
    }
  },
  created() {
    // let activeTab = ''
    // const meta = this.$route.meta.buttons || []
    // if (meta.indexOf('curriculumSales') > -1) {
    //   activeTab = '0'
    // } else if (meta.indexOf('CourseSaleDetail') > -1) {
    //   activeTab = '1'
    // }
    // this.activeTab = activeTab
    // this.meta = meta
  }

}
</script>

